﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AFT
{
    
class NetworkCfg
{

    public struct NetcfgInfo
    {
        public string name { get; set; }
        public string state { get; set; }
        public string ipaddr { get; set; }
        public string macaddr { get; set; }
    }

    public List<NetcfgInfo> netcfginformation;

    public NetworkCfg()
    {
        netcfginformation = new List<NetcfgInfo>();
    }

    public void addNetworkCfg(      string name,
                                    string state,
                                    string ipaddr,
                                    string macaddr )
    {

        NetcfgInfo newNetcfg = new NetcfgInfo();

        newNetcfg.name = name;
        newNetcfg.state = state;
        newNetcfg.ipaddr = ipaddr;
        newNetcfg.macaddr = macaddr;

        netcfginformation.Add(newNetcfg);

    }

    public int getNumberOfDiskInfo()
    {
        return netcfginformation.Count;
    }
}
}
